package com.exahq.service.impl;

import com.exahq.entity.Partnerinfo;
import com.exahq.mapper.PartnerinfoMapper;
import com.exahq.service.PartnerinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lhq
 * @since 2021-02-06
 */
@Service
public class PartnerinfoServiceImpl extends ServiceImpl<PartnerinfoMapper, Partnerinfo> implements PartnerinfoService {

    @Autowired
    private PartnerinfoMapper partnerinfoMapper;
    @Override
    public int getCount(Map<Object, Object> query) {
        return partnerinfoMapper.getCount(query);
    }

    @Override
    public List<Partnerinfo> selList(Map<Object, Object> query) {
        return partnerinfoMapper.selList(query);
    }

    @Override
    public List<Partnerinfo> byPidData(Integer id) {
        return partnerinfoMapper.byPidData(id);
    }
    @Override
    public Integer delete(Integer id) {
        return partnerinfoMapper.deleteById(id);
    }

    @Override
    public List<Partnerinfo> byCidData(Integer id) {
        return partnerinfoMapper.byCidData(id);
    }
}
